//var grid;
//var data = [];
//var dataView;
//var columns = [ {
//	id : "id",
//	name : "ID",
//	field : "id"
//}, {
//	id : "firstName",
//	name : "First name",
//	field : "firstName"
//}, {
//	id : "lastName",
//	name : "Last name",
//	field : "lastName"
//}, {
//	id : "sex",
//	name : "Sex",
//	field : "sex"
//}, {
//	id : "street",
//	name : "Street",
//	field : "street"
//}, {
//	id : "houseNr",
//	name : "House Nr",
//	field : "houseNr"
//}, {
//	id : "city",
//	name : "City",
//	field : "city"
//}, {
//	id : "zipCode",
//	name : "Zip Code",
//	field : "zipCode"
//}, {
//	id : "remove",
//	name : "",
//	field : "remove",
//	formatter : buttonFormatter,
//	cssClass: "column-delete" 
//} ];
//
//var options = {
//		enableCellNavigation : true,
//		forceFitColumns : true,
//		enableColumnReorder : false
//	};
//
////Now define your buttonFormatter function
//function buttonFormatter(row, cell, value, columnDef, dataContext) {
//	var button = "<input class='del-button' type='button' value = ' Delete ' id='"
//			+ dataContext.id + "' />";
//	//the id is so that you can identify the row when the particular button is clicked
//	return button;
//	//Now the row will display your button
//}
//
//$(function() {	//called when document ready?
//	//var wcall = Wicket.Ajax.get('http://localhost:8080/?0-1.IBehaviorListener.1-tabs-panel', function() { }, function() { });
//	
//});
//
//function addData(newData) {
//	dataView = new Slick.Data.DataView();
//	grid = new Slick.Grid("#myGrid", dataView, columns, options);
//	// initialize the model after all the events have been hooked up
//	dataView.beginUpdate();
//	dataView.setItems(data);
//	dataView.endUpdate();
//	
//	// wire up model events to drive the grid
//	dataView.onRowCountChanged.subscribe(function(e, args) {
//		grid.updateRowCount();
//		grid.render();
//	});
//	
//	dataView.onRowsChanged.subscribe(function(e, args) {
//		grid.invalidateRows(args.rows);
//		grid.render();
//	});
//
//	//Now you can use jquery to hook up your delete button event
//	$('.del-button').live('click', function() {
//		var me = $(this), id = me.attr('id');
//		//assuming you have used a dataView to create your grid
//		//also assuming that its variable name is called 'dataView'
//		//use the following code to get the item to be deleted from it
//		dataView.deleteItem(id);
//		//Wicket.Ajax.ajax({"u":"./?0-2.IBehaviorListener.1-tabs-panel","c":"panele"});
//		//callWicket("someString");
//		//This is possible because in the formatter we have assigned the row id itself as the button id;
//		//now assuming your grid is called 'grid'
//		grid.invalidate();		
//	});	
//	
//	dataView.beginUpdate();
////	dataView.addItems(newData);
//	for ( var i = 0; i < newData.length; i++) {
//		//data.push(newData[i]);
//		dataView.addItem(newData[i]);
//	}
//	dataView.endUpdate();
//	grid.render();
//}